.class Lcom/instagram/android/s/b/e;
.super Ljava/lang/Object;
.source "SurveyToolHelper.java"

# interfaces
.implements Landroid/content/DialogInterface$OnShowListener;


# instance fields
.field final synthetic a:Lcom/instagram/android/s/c/a;

.field final synthetic b:Lcom/instagram/android/s/b/a;


# direct methods
.method constructor <init>(Lcom/instagram/android/s/b/a;Lcom/instagram/android/s/c/a;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 173
    iput-object p1, p0, Lcom/instagram/android/s/b/e;->b:Lcom/instagram/android/s/b/a;

    iput-object p2, p0, Lcom/instagram/android/s/b/e;->a:Lcom/instagram/android/s/c/a;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onShow(Landroid/content/DialogInterface;)V
    .locals 4
    .parameter "dialog"

    .prologue
    .line 176
    iget-object v0, p0, Lcom/instagram/android/s/b/e;->a:Lcom/instagram/android/s/c/a;

    invoke-virtual {v0}, Lcom/instagram/android/s/c/a;->f()Lcom/instagram/android/s/c/c;

    move-result-object v0

    sget-object v1, Lcom/instagram/android/s/c/c;->a:Lcom/instagram/android/s/c/c;

    if-ne v0, v1, :cond_1

    .line 177
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    new-instance v1, Lcom/instagram/b/b;

    const-string v2, "user_sentiment_survey_presented"

    iget-object v3, p0, Lcom/instagram/android/s/b/e;->b:Lcom/instagram/android/s/b/a;

    invoke-static {v3}, Lcom/instagram/android/s/b/a;->d(Lcom/instagram/android/s/b/a;)Lcom/instagram/b/d;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v2, "survey_id"

    iget-object v3, p0, Lcom/instagram/android/s/b/e;->a:Lcom/instagram/android/s/c/a;

    invoke-virtual {v3}, Lcom/instagram/android/s/c/a;->b()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 184
    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/instagram/android/s/b/e;->b:Lcom/instagram/android/s/b/a;

    invoke-static {v0}, Lcom/instagram/android/s/b/a;->e(Lcom/instagram/android/s/b/a;)Landroid/os/Handler;

    move-result-object v0

    const/4 v1, 0x2

    invoke-static {}, Landroid/view/ViewConfiguration;->getDoubleTapTimeout()I

    move-result v2

    int-to-long v2, v2

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 186
    return-void

    .line 181
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/s/b/e;->a:Lcom/instagram/android/s/c/a;

    invoke-virtual {v0}, Lcom/instagram/android/s/c/a;->f()Lcom/instagram/android/s/c/c;

    move-result-object v0

    sget-object v1, Lcom/instagram/android/s/c/c;->b:Lcom/instagram/android/s/c/c;

    if-ne v0, v1, :cond_0

    .line 182
    iget-object v0, p0, Lcom/instagram/android/s/b/e;->a:Lcom/instagram/android/s/c/a;

    iget-object v1, p0, Lcom/instagram/android/s/b/e;->b:Lcom/instagram/android/s/b/a;

    invoke-static {v1}, Lcom/instagram/android/s/b/a;->d(Lcom/instagram/android/s/b/a;)Lcom/instagram/b/d;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/android/feed/f/k;->a(Lcom/instagram/android/s/c/a;Lcom/instagram/b/d;)V

    goto :goto_0
.end method
